package com.newviews.tcmip.pojo.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 成分-疾病关系表
 * </p>
 *
 * @author lxc
 * @since 2024-03-08
 */
@Getter
@Setter
@TableName("etcm_ingr_disease")
@ApiModel(value = "EtcmIngrDiseasePo", description = "成分-疾病关系表")
public class EtcmIngrDiseasePo implements Serializable{

private static final long serialVersionUID=1L;

    @Override
    public String toString() {
        return "EtcmIngrDiseasePo{" +
                "id='" + id + '\'' +
                ", createTime=" + createTime +
                ", createUserId='" + createUserId + '\'' +
                ", opTime=" + opTime +
                ", opUserId='" + opUserId + '\'' +
                ", status=" + status +
                ", ingrId='" + ingrId + '\'' +
                ", diseaseId='" + diseaseId + '\'' +
                ", ingrDiseaseDistance='" + ingrDiseaseDistance + '\'' +
                ", pValue='" + pValue + '\'' +
                ", diseaseEnName='" + diseaseEnName + '\'' +
                ", diseaseZhName='" + diseaseZhName + '\'' +
                ", ingrEnName='" + ingrEnName + '\'' +
                ", ingrZhName='" + ingrZhName + '\'' +
                '}';
    }

    /**
     *
     */
            @TableId("id")
                private String id;

    /**
     * 创建时间
     */
    @ApiModelProperty("创建时间")
    @TableField("create_time")
        private LocalDateTime createTime;

    /**
     * 创建人id
     */
    @ApiModelProperty("创建人id")
    @TableField("create_user_id")
        private String createUserId;

    /**
     * 修改时间
     */
    @ApiModelProperty("修改时间")
    @TableField("op_time")
        private LocalDateTime opTime;

    /**
     * 修改人id
     */
    @ApiModelProperty("修改人id")
    @TableField("op_user_id")
        private String opUserId;

    /**
     * 状态【0-无效；1-有效；2-已删除】
     */
    @ApiModelProperty("状态【0-无效；1-有效；2-已删除】")
    @TableField("status")
        private Integer status;

    /**
     * 处方外键
     */
    @ApiModelProperty("处方外键")
    @TableField("ingr_id")
        private String ingrId;

    /**
     * 疾病表外键
     */
    @ApiModelProperty("疾病表外键")
    @TableField("disease_id")
        private String diseaseId;

    @ApiModelProperty("疾病表外键")
    @TableField("ingr_disease_distance")
    private String ingrDiseaseDistance;



    @ApiModelProperty("疾病表外键")
    @TableField("p_value")
    private String pValue;

    @TableField(exist = false)
    private String diseaseEnName;

    @TableField(exist = false)
    private String diseaseZhName;

    @TableField(exist = false)
    private String ingrEnName;

    @TableField(exist = false)
    private String ingrZhName;

    /**
     *
     */
    public static final String ID ="id";

    /**
     * 创建时间
     */
    public static final String CREATE_TIME ="create_time";

    /**
     * 创建人id
     */
    public static final String CREATE_USER_ID ="create_user_id";

    /**
     * 修改时间
     */
    public static final String OP_TIME ="op_time";

    /**
     * 修改人id
     */
    public static final String OP_USER_ID ="op_user_id";

    /**
     * 状态【0-无效；1-有效；2-已删除】
     */
    public static final String STATUS ="status";

    /**
     * 处方外键
     */
    public static final String INGR_ID ="ingr_id";

    /**
     * 疾病表外键
     */
    public static final String DISEASE_ID ="disease_id";

        }
